if(SIMULATOR STREQUAL "verilator")
	
	include(verilator)
	mcv_gen_verilator_dut("UT_nutshell_cache" "Cache" "Cache"
												"${PROJECT_SOURCE_DIR}/mcv-ut/build/NutShell/Cache.v")

	if(TRACE STREQUAL "ON")
		include_directories(${PROJECT_SOURCE_DIR}/dut/UT_nutshell_cache_trace)
		add_library(UT_nutshell_cache_trace
								${PROJECT_SOURCE_DIR}/dut/UT_nutshell_cache_trace/UTCache.cpp)
		add_executable(tb_nutshell_cache_coroutine tb_nutshell_cache_coroutine.cpp)
		target_link_libraries(
			tb_nutshell_cache_coroutine ovip xspcomm UT_nutshell_cache_trace
			${PROJECT_SOURCE_DIR}/dut/UT_nutshell_cache_trace/libDPICache.so)
	else()
		include_directories(${PROJECT_SOURCE_DIR}/dut/UT_nutshell_cache)
		add_library(UT_nutshell_cache
								${PROJECT_SOURCE_DIR}/dut/UT_nutshell_cache/UTCache.cpp)
		add_executable(tb_nutshell_cache_coroutine tb_nutshell_cache_coroutine.cpp)
		target_link_libraries(
			tb_nutshell_cache_coroutine ovip xspcomm UT_nutshell_cache
			${PROJECT_SOURCE_DIR}/dut/UT_nutshell_cache/libDPICache.so)
	endif()

endif()
